home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20031118-20041115
/
000421_robertls@nortelnetworks.com_Thu Oct 21 11:03:40 2004.msg
< prev
next >
Wrap
Internet Message Format
|
2004-11-14
|
3KB
Path: newsmaster.cc.columbia.edu!panix!newsfeed.media.kyoto-u.ac.jp!snoopy.risq.qc.ca!nrc-news.nrc.ca!utnut!qcarhaaa.nortelnetworks.com!bcarh189.ca.nortel.com!zcars0v6!not-for-mail
From: "Robert Simmons" <robertls@nortelnetworks.com>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Kermit Script Output Out of Order
Date: Wed, 20 Oct 2004 18:19:44 -0500
Organization: Nortel
Lines: 58
Message-ID: <cl6rqi$mo0$1@zcars0v6.ca.nortel.com>
References: <cl29ql$dm7$1@zcars0v6.ca.nortel.com> <slrncnan01.3s1.fdc@sesame.cc.columbia.edu> <cl3tc5$5n0$1@zcars0v6.ca.nortel.com> <_mfdd.83561$Ot3.22349@twister.nyc.rr.com> <cl4k1s$97u$1@zcars0v6.ca.nortel.com> <slrncnddme.qmr.fdc@sesame.cc.columbia.edu>
NNTP-Posting-Host: robertls-1.us.nortel.com
X-Trace: zcars0v6.ca.nortel.com 1098314386 23296 47.102.125.229 (20 Oct 2004 23:19:46 GMT)
X-Complaints-To: hawkinsj@nortelnetworks.com
NNTP-Posting-Date: Wed, 20 Oct 2004 23:19:46 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15204
I tried the fork with the stdout and stdin unbuffered. But this had no
effect. Probably because as you wrote the echos and help text output is
buffered internally in kermit. Is there any way to flush the buffer for
echo and help text? Or set it so that these are not buffered?
Thanks for the advise on the script. I'll use it. The book I have is
outdated. I'll use the website for more up to date info.
As for the looping send: We are sending the same file as a soak test of the
connection so we don't care about the content, just that the connection
stays up and the transfers complete.
Thanks,
Robert
"Frank da Cruz" <fdc@columbia.edu> wrote in message
news:slrncnddme.qmr.fdc@sesame.cc.columbia.edu...
> On 2004-10-20, Robert Simmons <robertls@nortelnetworks.com> wrote:
> : I am not piping the output of two processes to one file. I tried the
piping
> : of the output of only the kermit script to help debug the weird
behaviour I
> : was seeing in the output during the fork of the script from the C++
process.
> :
> : As you can see below the line "Hello and welcome to
csd_send_script.ksc!"
> : should be output well before "NO CARRIER" since it takes about 15
seconds
> : for NO CARRIER to be determined.
> :
> It's what I said: ECHO is buffered, whereas SET DIAL DISPLAY ON output is
> not. By the way, Kermit has had FOR (and WHILE) loops for many years, so
> you don't need the old SET COUNT / IF COUNT trick any more:
>
> : set count \%5
> ::loop
> : echo Sending File. Transfer Count: \v(count)\10
> : send \%6
> : if success echo Send File #\v(count) complete\10
> : if fail echo Failed Sending File #\v(count)
> : if count goto loop
>
> Why are you sending the same file repeatedly? Something like this
> looks more sensible:
>
> set flag off
> for \%i 1 \%5 1 {
> send \%6
> if success break
> echo "\%6: Failed - Try #\%i..."
> }
> if != \v(xferstatus) { ... } # 0 means success
>
> - Frank